using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace LeeFramework.ResourcesService
{
    public class ResourcesUtils
    {
        private static bool _IsLog = false;

        public static void ShowLog()
        {
            _IsLog = true;
        }

        public static void D(object msg)
        {
            if (!_IsLog)
            {
                return;
            }
            Debug.Log(msg);
        }

        public static void DFat(string format, params object[] args)
        {
            if (!_IsLog)
            {
                return;
            }
            Debug.LogFormat(format, args);
        }

        public static void W(object msg)
        {
            if (!_IsLog)
            {
                return;
            }
            Debug.LogWarning(msg);
        }

        public static void WFat(string format, params object[] args)
        {
            if (!_IsLog)
            {
                return;
            }
            Debug.LogWarningFormat(format, args);
        }

        public static void E(object msg)
        {
            if (!_IsLog)
            {
                return;
            }
            Debug.LogError(msg);
        }

        public static void EFat(string format, params object[] args)
        {
            if (!_IsLog)
            {
                return;
            }
            Debug.LogErrorFormat(format, args);
        }
    }
}